import React from 'react';
import { Table } from 'antd';

const TableList = ({
  columns,
  dataSource,
  loading,
  pagination
}) => {
  return (
    <Table
      columns={columns}
      dataSource={dataSource}
      loading={loading}
      pagination={pagination}
      rowKey={(record) => record.id}
    />
  );
};



export default TableList;